<{include file="header.html"}>
<{include file="top.html"}>
<div class="h_980 clearfix">
    <div class="midd_con">
      <div class="page_dh"><{GetProductBreadcrumbNav cid=$categories_id jg=' >> '}></div>
        <{if $son}>
              <ul class="son_categories clear">
                  <{foreach item=item name=name from=$son}>
                  <li>
                  <a rel="category tag" href="<{spUrl c=products a=index alias=$item.alias}>"><{$item.detail.categories_name}></a>
                  </li>
                  <{/foreach}>
              </ul>
              <br class="clear"/>
              <{if $smarty.const.SJCP neq '0'}>
              
                  <{Newproducts c=products a=view cid=$categories_id loop=4 num=$smarty.const.SJCP}>
              
              <{/if}>
        <{else}>
            <{if $pager ne null}>
              <div class="conditionarea">
                     <span class="mr20"><{T w='Displaying'}> <strong><{if $pager.current_page>1}><{$pager.page_size*$pager.current_page-$pager.page_size+1}><{else}><{$pager.current_page}><{/if}></strong> <{T w='to'}> <strong><{if $pager.total_count>$pager.page_size*$pager.current_page}><{$pager.page_size*$pager.current_page}><{else}><{$pager.total_count}><{/if}></strong> (<{T w='of'}> <strong><{$pager.total_count}></strong> <{T w='products'}>)</span>
                     <label><{T w='Sort by'}>: </label>
                     <form name="sorter_form" action="<{spUrl c=products a=index alias=$alias}>" method="post">
                                <select name="order" onchange="this.form.submit();">
                                    <{foreach item=item key=key from=$disporder}>
                                      <option value="<{$key}>"<{if $order eq $key}> selected="selected"<{/if}>><{$item}></option>
                                    <{/foreach}>
                                </select>
                     </form>
              </div>
            <{/if}>
              <ul class="product_list">
              <{foreach item=item name=name from=$productslist}>
                   <li>
                      <a href="<{spUrl c=products a=view alias=$item.alias}>" title="<{$item.detail.products_title}>">
                          <img src="<{$smarty.const.WEBDIR}>upload/<{$item.products_image}>"  alt="<{$item.detail.products_title}>" />
                          <div class="index_pro_des">
                          <{Getprice pid=$item.products_id price=$item.products_price price2=$item.products_price_discounted yh=1}>
                          <h4><{$item.detail.products_name}></h4>
                          </div>
                          <span class="index_oabg ipd_ed"></span>
                      </a>
                   </li>
              <{/foreach}>
              </ul>
              <{if $pager ne null}>  
              <p class="page_list"><{GetPage c=products a=index alias=$alias pager=$pager order=$order}></p>
              <{/if}>
            <{/if}>
              <div id="backtop"></div>
   </div>  
    <{include file="index_left.html"}>
</div>
<{include file="footer.html"}>
</body>
</html>